/* hello.c */
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#define AUTH "Anndse <wanghuisf1985@163.com>"
#define DESC "A sample drive"

static int __init hello_init(void)
{
    printk(KERN_ALERT "Hello, linux kernel module\n");
    return 0;
}
static void __exit hello_exit(void)
{
    printk(KERN_ALERT "Goodbye, I've created a linux kernel module sucessfully\n");
}
module_init(hello_init);
module_exit(hello_exit);

MODULE_LICENSE("GPL"); 

MODULE_AUTHOR(AUTH);
MODULE_DESCRIPTION(DESC);
MODULE_SUPPORTED_DEVICE("mydevice");

